define([],function(){
	var tpl = {};

	tpl.baseInfo = function(){
		return baseInfo();
	}
	tpl.tabs = function(){
		return tabs();
	}
	tpl.quest = function(){
		return quest();
	}
	tpl.answer = function(){
		return answer();
	}

	var baseInfo = function(){
		return 	'<script id="tpl_nbnaDetail_baseInfo" type="text/html">'+
				'	<li>姓名：{{userName}}</li>'+
            	'	<li>{{if flag == 1}}实际月龄{{else if flag == 2}}纠正月龄{{/if}}：{{monthAge}}</li>'+
            	'	<li>测试日期：{{testDate}}</li>'+
				'</script>';
	}
	var tabs = function(){
		return 	'<script id="tpl_nbnaDetail_tabs" type="text/html">'+
				'	{{each list as value i}}'+
            	'		<li {{if end=="end"}}class="done"{{/if}} type="{{value.type}}" name="{{value.name}}" ids="{{value.ids}}">{{value.name}}</li>'+
            	'	{{/each}}'+
				'</script>';
	}
	var quest = function(){
		return 	'<script id="tpl_nbnaDetail_quest" type="text/html">'+
				'	{{each question as value i}}'+
                '		<ul class="clearfix ques-item" id="{{value.id}}" options="{{value.option}}" score="{{value.score}}">'+
                '			<li><div>{{value.id}}</div></li>'+
                '			<li><div>{{value.title}}</div></li>'+
                '			<li>{{value.desc}}</li>'+
                '		</ul>'+
                '	{{/each}}'+
				'</script>';
	}
	var answer = function(){
		return 	'<script id="tpl_nbnaDetail_answer" type="text/html">'+
				'	<li>评定</li>'+
            	'	{{each list as value i}}'+
            	'		<li class="options" quesId="{{value.id}}" val="{{value.value}}" score="{{value.score}}">{{value.opt}}</li>'+
            	'	{{/each}}'+
				'</script>';
	}

	return tpl;
});